<?php
/**
 * $Id: default_winners.php 11 2010-05-18 11:39:11Z webbochsant $
 *  @package	Joomla
 *  @author Daniel Eliasson
* 	@copyright	Copyright (C) 2010 Stilero. All rights reserved.
* 	@license	GNU/GPL, see LICENSE.php
* 	Joomla! is free software. This version may have been modified pursuant
* 	to the GNU General Public License, and as distributed it includes or
* 	is derivative of works licensed under the GNU General Public License or
* 	other free or open source software licenses.
*/

// no direct access
defined('_JEXEC') or die('Restricted access'); 
?>
<br />
<table class="winnerstableborder" cellspacing="0" cellpadding="0" border="0">
<thead>
	<tr>
		<th colspan="1" class="sectiontableheader">
			<?php print JText::_('Competition')?>
		</th>
		<th colspan="1" class="sectiontableheader">
			<?php print JText::_('Winner')?>
		</th>
		<th colspan="1" class="sectiontableheader">
			<?php print JText::_('Website')?>
		</th>
		<th colspan="1" class="sectiontableheader">
			<?php print JText::_('Ended')?>
		</th>
	</tr>
</thead>
<tbody>

<?php foreach($this->winners as $win) : ?>
	
	<tr class="sectiontableentry">
		<td width="20%" colspan="1">
			<?php echo $win->comp_name; ?>
		</td>
		<td width="20%" colspan="1">
			<?php echo $win->cont_name; ?>
		</td>
		<td width="40%" colspan="1">
			<a href="<?php echo $win->linkurl; ?>" target="_blank"><?php echo $win->linkurl; ?></a>
		</td>
		<td width="20%" >
			<?php echo JHTML::Date($win->date); ?>
		</td>
	</tr>
<?php endforeach; ?>
</tbody>
</table>
